package com.charger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.mapper.FailureManageMapper;
import com.charger.domain.FailureManage;
import com.charger.service.IFailureManageService;

/**
 * 故障处理Service业务层处理
 * 
 * @author xuan
 * @date 2024-11-27
 */
@Service
public class FailureManageServiceImpl implements IFailureManageService 
{
    @Autowired
    private FailureManageMapper failureManageMapper;

    /**
     * 查询故障处理
     * 
     * @param failureId 故障处理主键
     * @return 故障处理
     */
    @Override
    public FailureManage selectFailureManageByFailureId(Long failureId)
    {
        return failureManageMapper.selectFailureManageByFailureId(failureId);
    }

    /**
     * 查询故障处理列表
     * 
     * @param failureManage 故障处理
     * @return 故障处理
     */
    @Override
    public List<FailureManage> selectFailureManageList(FailureManage failureManage)
    {
        return failureManageMapper.selectFailureManageList(failureManage);
    }

    /**
     * 新增故障处理
     * 
     * @param failureManage 故障处理
     * @return 结果
     */
    @Override
    public int insertFailureManage(FailureManage failureManage)
    {
        return failureManageMapper.insertFailureManage(failureManage);
    }

    /**
     * 修改故障处理
     * 
     * @param failureManage 故障处理
     * @return 结果
     */
    @Override
    public int updateFailureManage(FailureManage failureManage)
    {
        return failureManageMapper.updateFailureManage(failureManage);
    }

    /**
     * 批量删除故障处理
     * 
     * @param failureIds 需要删除的故障处理主键
     * @return 结果
     */
    @Override
    public int deleteFailureManageByFailureIds(Long[] failureIds)
    {
        return failureManageMapper.deleteFailureManageByFailureIds(failureIds);
    }

    /**
     * 删除故障处理信息
     * 
     * @param failureId 故障处理主键
     * @return 结果
     */
    @Override
    public int deleteFailureManageByFailureId(Long failureId)
    {
        return failureManageMapper.deleteFailureManageByFailureId(failureId);
    }
}
